package com.dhecp.project.hr.mapper;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.hr.domain.OperateCompanyRoute;

import java.util.List;
import java.util.Map;

public interface OperateCompanyRouteMapper extends GenericDao<OperateCompanyRoute, String> {

	/**
	 * 根据公司编码删除
	 * @author XDH
	 */
	void deleteByGsbm(@Param("VGsBm")String VGsBm);

	/**
	 * 根据公司简称查找
	 * @author XDH
	 */
	OperateCompanyRoute findByShortName(String vGsJc);

	OperateCompanyRoute findByGsBm(String vGsBm);


	/**
	*@Description: 根据编码查询公司下级和下下级
	*@Param: [shortName]
	*@return: com.dhecp.project.hr.domain.OperateCompanyRoute
	*@Author: hlf
	*@date: 2023-02-22 15:48
	*/
	int getCompanyTier(@Param("vGsBm")String vGsBm);

	/**
	 *@Description: 查询公司下级和下下级的店铺数
	 *@Param: [shortName]
	 *@return: com.dhecp.project.hr.domain.OperateCompanyRoute
	 *@Author: hlf
	 *@date: 2023-02-22 15:48
	 */
	List<Map<String, String>> getCompanyTier2();

	int updateRoute(OperateCompanyRoute operateCompanyRoute);

}
